<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>案件--详细</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	//隐藏显示span
	function displaySpan(id){
		var x = document.getElementById(id).style.display;
		if(x == "none"){
			document.getElementById(id).style.display = "";
		}else{
			document.getElementById(id).style.display = "none";
		}
	}
	
	//申请立案
	function addApplyCase(){
		var arr = showModalDialog("<%=request.getContextPath()%>/admin/applyCaseAdd.jsp?cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:550pt;help:0;status:0");
		document.location.reload();
	}
	
	//修改立案审批表
	function updateApplyCase(aid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ApplyCase.do?method=toApplyCaseUpdate&aid=" + aid, "", "dialogWidth:600pt;dialogHeight:550pt;help:0;status:0");
	}
	//立案审批表详细
	function detailApplyCase(aid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ApplyCase.do?method=detailApplyCase&aid=" + aid, "", "dialogWidth:600pt;dialogHeight:350pt;help:0;status:0");
	}
	//添加案件延期
	function addDelayInspect(){
		var arr = showModalDialog("<%=request.getContextPath()%>/admin/delayInspectAdd.jsp?cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:550pt;help:0;status:0");
		document.location.reload();
	}
	
	//修改案件延期
	function updateDelayInspect(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DelayInspect.do?method=toDelayInspectUpdate&did=" + did, "", "dialogWidth:600pt;dialogHeight:550pt;help:0;status:0");
		document.location.reload();
	}
	//案件延期详细
	function detailDelayInspect(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DelayInspect.do?method=detailDelayInspect&did=" + did, "", "dialogWidth:600pt;dialogHeight:350pt;help:0;status:0");
		document.location.reload();
	}
	//添加案件撤销申请
	function addCaseNotApply(){
		var arr = showModalDialog("<%=request.getContextPath()%>/admin/caseNotApplyAdd.jsp?cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:550pt;help:0;status:0");
		document.location.reload();
	}
	
	//修改案件撤销
	function updateCaseNotApply(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseNotApply.do?method=toCaseNotApplyUpdate&did=" + did, "", "dialogWidth:600pt;dialogHeight:550pt;help:0;status:0");
		document.location.reload();
	}
	//案件撤销详细
	function detailCaseNotApply(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseNotApply.do?method=detailCaseNotApply&did=" + did, "", "dialogWidth:600pt;dialogHeight:350pt;help:0;status:0");
		document.location.reload();
	}
	
	//添加不予受理决定书
	function addRefuseCase(){
		var arr = showModalDialog("<%=request.getContextPath()%>/RefuseCase.do?method=toQuerNotiInfoAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//添加询问通知书
	function addQuerNotiInfo(){
		var arr = showModalDialog("<%=request.getContextPath()%>/QuerNotiInfo.do?method=toQuerNotiInfoAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//修改询问通知书
	function updateQuerNotiInfo(qid){
		var arr = showModalDialog("<%=request.getContextPath()%>/QuerNotiInfo.do?method=toQuerNotiInfoUpdate&qid=" + qid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}
	//询问通知书详细
	function detailQuerNotiInfo(qid){
		var arr = showModalDialog("<%=request.getContextPath()%>/QuerNotiInfo.do?method=detailQuerNotiInfo&qid=" + qid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}
    //添加授权委托书
	function addGivePowerBook(){
		var arr = showModalDialog("<%=request.getContextPath()%>/GivePowerBookInfo.do?method=toGivePowerBookInfoAdd&cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:300pt;help:0;status:0");
		document.location.reload();
	}
	//修改授权委托书
	function updateGivePowerBook(gid){
		var arr = showModalDialog("<%=request.getContextPath()%>/GivePowerBookInfo.do?method=toGivePowerBookInfoUpdate&gid="+gid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//授权委托书详细
	function detailGivePowerBook(gid){
		var arr = showModalDialog("<%=request.getContextPath()%>/GivePowerBookInfo.do?method=detailGivePowerBookInfo&gid=" +gid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//添加证据先行保存通知书
	function addEvidRigiNoti(){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=toEvidRigiInfoAdd&cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:300pt;help:0;status:0");
		document.location.reload();
	}
	//修改证据先行保存通知书
	function updateEvidRigiNoti(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=toEvidRigiInfoUpdate&eid="+eid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//证据先行保存通知详细
	function detailEvidRigiNoti(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=detailEvidRigiInfo&eid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	
	//添加案件讨论记录
	function addDiscussRecord(){
		var arr = showModalDialog("<%=request.getContextPath()%>/DiscussRecord.do?method=toQuerNotiInfoAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//修改案件讨论记录
	function updateDiscussRecord(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DiscussRecord.do?method=toDiscussRecordUpdate&did=" + did, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//案件讨论记录详细
	function detailDiscussRecord(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DiscussRecord.do?method=detailDiscussRecord&did=" + did, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	
	//添加证据先行保存决定书
	function addEvidDeci(){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidDeciInfo.do?method=toEvidDeciInfoAdd&cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:300pt;help:0;status:0");
		document.location.reload();
	}
	//修改证据先行保存决定书
	function updateEvidDeci(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidDeciInfo.do?method=toEvidDeciInfoUpdate&eid="+eid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//证据先行保存决定详细
	function detailEvidDeci(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidDeciInfo.do?method=detailEvidDeciInfo&eid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	
	
	//添加送达回执
	function addReceiptInfo(){
		var arr = showModalDialog("<%=request.getContextPath()%>/ReceiptInfo.do?method=toReceiptInfoAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}

	//修改送达回执
	function updateReceiptInfo(rid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ReceiptInfo.do?method=toReceiptInfoUpdate&rid=" + rid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}
	//送达回执详细
	function detailReceiptInfo(rid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ReceiptInfo.do?method=detailReceiptInfo&rid=" + rid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}	
	//案件转交
    function changeInspetor(){
		var arr = showModalDialog("<%=request.getContextPath()%>/admin/selectInspectorMain.jsp?cid=${param.cid}", "", "dialogWidth:550pt;dialogHeight:320pt;help:0;status:0");
		window.location.href="<%=request.getContextPath()%>/CaseInfo.do?method=list";
    }
    
    //添加案件转交
	function addCaseChangeInsp(){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseChangeInsp.do?method=toCaseChangeInspAdd&cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:300pt;help:0;status:0");
		document.location.reload();
	}
	//修改案件转交
	function updateCaseChangeInsp(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseChangeInsp.do?method=toCaseChangeInspUpdate&cid="+eid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//案件转交详细
	function detailCaseChangeInsp(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseChangeInsp.do?method=detailCaseChangeInsp&cid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	
	//添加询问笔录
	function addEvidenceInfo(){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidenceInfo.do?method=toEvidenceInfoAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:550pt;help:0;status:0");
		document.location.reload();
	}
	//修改询问笔录
	function updateEvidenceInfo(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidenceInfo.do?method=toEvidenceInfoUpdate&eid=" + eid, "", "dialogWidth:500pt;dialogHeight:550pt;help:0;status:0");
	}
	//询问笔录详细
	function detailEvidenceInfo(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidenceInfo.do?method=detailEvidenceInfo&eid=" + eid, "", "dialogWidth:500pt;dialogHeight:550pt;help:0;status:0");
	}
	//申请处理
	function addDisposalConsiderations(){
		var arr = showModalDialog("<%=request.getContextPath()%>/admin/disposalConsiderationsAdd.jsp?cid=${param.cid}", "", "dialogWidth:450pt;dialogHeight:408pt;help:0;status:0");
		document.location.reload();
	}
	//修改处理审批表
	function updateDisposalConsiderations(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalConsiderations.do?method=toDisposalConsiderationsUpdate&did=" + did, "", "dialogWidth:450pt;dialogHeight:408pt;help:0;status:0");
	}
	//处理审批表详细
	function detailDisposalConsiderations(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalConsiderations.do?method=detailDisposalConsiderations&did=" + did, "", "dialogWidth:450pt;dialogHeight:408pt;help:0;status:0");
	}
	//添加整改指令书
	function addDisposalRectification(){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalRectification.do?method=toDisposalRectificationAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
		document.location.reload();
	}
	//修改整改指令书
	function updateDisposalRectification(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalRectification.do?method=toDisposalRectificationUpdate&did=" + did, "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
	}
	//整改指令书详细
	function detailDisposalRectification(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalRectification.do?method=detailDisposalRectification&did=" + did, "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
	}
	//添加处罚告知书
	function addDisposalNotice(){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalNotice.do?method=toDisposalNoticeAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:270pt;help:0;status:0");
		document.location.reload();
	}
	//修改处罚告知书
	function updateDisposalNotice(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalNotice.do?method=toDisposalNoticeUpdate&did=" + did, "", "dialogWidth:500pt;dialogHeight:270pt;help:0;status:0");
	}
	//处罚告知书详细
	function detailDisposalNotice(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalNotice.do?method=detailDisposalNotice&did=" + did, "", "dialogWidth:500pt;dialogHeight:270pt;help:0;status:0");
	}
	//添加处罚决定书
	function addDisposalDecision(){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalDecision.do?method=toDisposalDecisionAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
		document.location.reload();
	}
	//修改处罚决定书
	function updateDisposalDecision(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalDecision.do?method=toDisposalDecisionUpdate&did=" + did, "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
	}
	//处罚决定书详细
	function detailDisposalDecision(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalDecision.do?method=detailDisposalDecision&did=" + did, "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
	}
	//添加处理跟踪
	function addDisposalTrack(){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalTrack.do?method=toDisposalTrackAdd&cid=${param.cid}", "", "dialogWidth:500pt;dialogHeight:135pt;help:0;status:0");
		document.location.reload();
	}
	//修改处理跟踪
	function updateDisposalTrack(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalTrack.do?method=toDisposalTrackUpdate&did=" + did, "", "dialogWidth:500pt;dialogHeight:135pt;help:0;status:0");
	}
	//处理跟踪详细
	function detailDisposalTrack(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalTrack.do?method=detailDisposalTrack&did=" + did, "", "dialogWidth:500pt;dialogHeight:135pt;help:0;status:0");
	}
	
	//添加强制执行
	function addEnforceDo(){
		var arr = showModalDialog("<%=request.getContextPath()%>/EnforceDo.do?method=toEnforceDoAdd&cid=${param.cid}", "", "dialogWidth:600pt;dialogHeight:300pt;help:0;status:0");
		document.location.reload();
	}
	//修改强制执行
	function updateEnforceDo(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EnforceDo.do?method=toEnforceDoUpdate&eid="+eid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//强制执行详细
	function detailEnforceDo(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EnforceDo.do?method=detailEnforceDo&eid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	
	//申请结案
	function addApplyEndcase(){
		var arr = showModalDialog("<%=request.getContextPath()%>/admin/applyEndcaseAdd.jsp?cid=${param.cid}", "", "dialogWidth:450pt;dialogHeight:600pt;help:0;status:0");
		document.location.reload();
	}
	//修改结案审批表
	function updateApplyEndcase(aid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ApplyEndcase.do?method=toApplyEndcaseUpdate&aid=" + aid, "", "dialogWidth:450pt;dialogHeight:600pt;help:0;status:0");
	}
	//结案审批表详细
	function detailApplyEndcase(aid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ApplyEndcase.do?method=detailApplyEndcase&aid=" + aid, "", "dialogWidth:450pt;dialogHeight:600pt;help:0;status:0");
	}
</script>
</head>

<body>
<table width="70%">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>案件编号：</p>
    </td>
    <td width="75%" align="left" >${cInfo.caseInfoCode}&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>被立案单位：</p>
    </td>
    <td width="75%" align="left" >${cInfo.employerInfo.empInfoName}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案件性质：</td>
    <td align="left"><cms:query value="${cInfo.caseInfoProperty}"></cms:query>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案件来源：</td>
    <td align="left"><cms:query value="${cInfo.caseInfoSource}"></cms:query>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案件状态：</td>
    <td align="left">
    <c:choose>
	 <c:when test="${cInfo.caseInfoCasestate == '0'}">尚未立案</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '1'}">立案审批</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '2'}">调查取证</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '3'}">处理审批</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '4'}">处理</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '5'}">结案审批</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '7'}">不予以受理</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '9'}">案件延期</c:when>
     <c:when test="${cInfo.caseInfoCasestate == 'f'}">案件待移送</c:when>
	 <c:when test="${cInfo.caseInfoCasestate == 'e'}">案件移送</c:when>
	 </c:choose>
    &nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">立案日期：</td>
    <td align="left"><fmt:formatDate pattern="yyyy-MM-dd" value="${cInfo.caseInfoBeginDate}"/>&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>案由：</p>
    </td>
    <td width="75%" align="left" >${cInfo.caseInfoOrigin}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案情及立案依据：</td>
    <td align="left">${cInfo.caseInfoBasiccondiBeginres}</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">备注：</td>
    <td align="left">${cInfo.caseInfoRemark}</td>
  </tr>
  
    <tr>
    <td align="right" class="bg_blue">不予受理决定书</td>
    <td>
    <a href="#" onclick="addRefuseCase()">添加</a>
    </td>
  </tr>

  <c:if test="${cInfo.caseInfoCasestate != '7'}">
  <tr>
    <td align="right" class="bg_blue">立案审批表</td>
    <td>
    <c:if test="${empty applyCase}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty applyCase}">
    <c:if test="${cInfo.caseInfoCasestate == '1'}">
    <a href="#" onclick="updateApplyCase('${applyCase.applyCaseId}')">修改</a>
    </c:if> 
    <a href="#" onclick="detailApplyCase('${applyCase.applyCaseId}')">查看</a>
    <a href="<%=request.getContextPath()%>/ApplyCase.do?method=docApplyCase&aid=${applyCase.applyCaseId}" target="_blank">下载</a></c:if></td>
  </tr>
  <tr>
    <td align="right" class="bg_blue">询问通知书</td>
    <td>
    <a href="#" onclick="displaySpan('querNotiInfo')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="addQuerNotiInfo()">添加</a>
    </c:if>
    <br/>
    <span id="querNotiInfo" style="display:none">
    <c:if test="${empty querNotiInfoList}"><font color="#FF0000">未填写通知书</font></c:if>
    <c:forEach items="${querNotiInfoList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.querNotiInfoCreateDate}"/>]通知书
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9'}">
    <a href="#" onclick="updateQuerNotiInfo('${prod.querNotiInfoId}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/QuerNotiInfo.do?method=deleteQuerNotiInfo&qid=${prod.querNotiInfoId}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailQuerNotiInfo('${prod.querNotiInfoId}')">查看</a>
    <a href="<%=request.getContextPath()%>/QuerNotiInfo.do?method=docQuerNotiInfo&qid=${prod.querNotiInfoId}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
    <tr>
    <td align="right" class="bg_blue">授权委托书</td>
    <td>
    <a href="#" onclick="displaySpan('givePowerBook')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="addGivePowerBook()">添加</a>
    </c:if>
    <br/>
    <span id="givePowerBook" style="display:none">
    <c:if test="${empty givePowerBookList}"><font color="#FF0000">未填写授权委托书</font></c:if>
    <c:forEach items="${givePowerBookList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.givePowerDate}"/>]授权委托书
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="updateGivePowerBook('${prod.givePowerId}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/GivePowerBookInfo.do?method=deleteGivePowerBookInfo&gid=${prod.givePowerId}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailGivePowerBook('${prod.givePowerId}')">查看</a>
    <a href="<%=request.getContextPath()%>/GivePowerBookInfo.do?method=docGivePowerBookInfo&gid=${prod.givePowerId}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
  <tr>
    <td align="right" class="bg_blue">询问笔录</td>
    <td>
    <a href="#" onclick="displaySpan('evidenceInfo')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="addEvidenceInfo('${applyCase.applyCaseId}')">添加</a>
    </c:if>
    <br/>
    <span id="evidenceInfo" style="display:none">
    <c:if test="${empty evidenceInfoList}"><font color="#FF0000">未填写笔录</font></c:if>
    <c:forEach items="${evidenceInfoList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.evidenceInfoBeginDate}"/>]笔录
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9'}">
    <a href="#" onclick="updateEvidenceInfo('${prod.evidenceInfoId}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/EvidenceInfo.do?method=deleteEvidenceInfo&eid=${prod.evidenceInfoId}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailEvidenceInfo('${prod.evidenceInfoId}')">查看</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
  
  <tr>
    <td align="right" class="bg_blue">证据先行登记保存通知书</td>
    <td>
    <a href="#" onclick="displaySpan('evidenceRigisterNoti')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="addEvidRigiNoti()">添加</a>
    </c:if>
    <br/>
    <span id="evidenceRigisterNoti" style="display:none">
    <c:if test="${empty evidRigiNotiList}"><font color="#FF0000">未填写证据先行登记保存通知书</font></c:if>
    <c:forEach items="${evidRigiNotiList}" var="prod" varStatus="lineInfo">
    先行登记保存通知书
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9'}">
    <a href="#" onclick="updateEvidRigiNoti('${prod.id}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=deleteEvidRigiNoti&eid=${prod.id}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailEvidRigiNoti('${prod.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=docEvidRigiNotiInfo&eid=${prod.id}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
  
  
  <tr>
    <td align="right" class="bg_blue">证据先行登记保存决定书</td>
    <td>
    <a href="#" onclick="displaySpan('evidenceDeci')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="addEvidDeci()">添加</a>
    </c:if>
    <br/>
    <span id="evidenceDeci" style="display:none">
    <c:if test="${empty evidDeciList}"><font color="#FF0000">未填写证据先行登记保存决定书</font></c:if>
    <c:forEach items="${evidDeciList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.evidRigiDeciDate}"/>]先行登记保存决定书
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="updateEvidDeci('${prod.id}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/EvidDeciInfo.do?method=deleteEvidDeci&eid=${prod.id}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailEvidDeci('${prod.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/EvidDeciInfo.do?method=docEvidDeciInfo&eid=${prod.id}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>  
  
    <tr>
    <td align="right" class="bg_blue">案件延期处理报批表</td>
    <td>
<c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
     <c:if test="${empty DelayInspect}">
    <a href="#" onclick="addDelayInspect()">添加</a>
    </c:if>
    </c:if>
    <c:if test="${empty DelayInspect}"><font color="#FF0000">未填写案件延期调查报批表</font></c:if>
    <c:if test="${!empty DelayInspect}">
    <c:if test="${DelayInspect.delayInspectOganIfagree == '0'}">
    <a href="#" onclick="updateDelayInspect('${DelayInspect.id}')">修改</a>
    <!--<a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/DelayInspect.do?method=deleteEvidDeci&eid=${prod.id}'}">删除</a>-->
    </c:if>
    <a href="#" onclick="detailDelayInspect('${DelayInspect.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/DelayInspect.do?method=docDelayInspect&did=${DelayInspect.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>
  
    <tr>
    <td align="right" class="bg_blue">案件撤销立案审批表</td>
    <td>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
     <c:if test="${empty CaseNotApply}">
    <a href="#" onclick="addCaseNotApply()">添加</a>
    </c:if>
    </c:if>
    <c:if test="${empty CaseNotApply}"><font color="#FF0000">未填写案件撤销立案审批表</font></c:if>
    <c:if test="${!empty CaseNotApply}">
    <c:if test="${CaseNotApply.caseNotApplyIfagree == '0'}">
    <a href="#" onclick="updateCaseNotApply('${CaseNotApply.id}')">修改</a>
   <!--  <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/CaseNotApply.do?method=deleteCaseNotApply&did=${prod.id}'}">删除</a> -->
    </c:if>
    <a href="#" onclick="detailCaseNotApply('${CaseNotApply.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/CaseNotApply.do?method=docCaseNotApply&did=${CaseNotApply.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>
  
  
    <tr>
    <td align="right" class="bg_blue">案件讨论记录</td>
    <td>
    <a href="#" onclick="displaySpan('DiscussRecord')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="addDiscussRecord()">添加</a>
    </c:if>
    <br/>
    <span id="DiscussRecord" style="display:none">
    <c:if test="${empty discussRecordList}"><font color="#FF0000">未填写案件讨论记录</font></c:if>
    <c:forEach items="${discussRecordList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.discussRecordDate}"/>]案件讨论记录
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <a href="#" onclick="updateDiscussRecord('${prod.id}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/DiscussRecord.do?method=deleteDiscussRecord&did=${prod.id}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailDiscussRecord('${prod.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/DiscussRecord.do?method=docDiscussRecord&did=${prod.id}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
  
   <tr>
    <td align="right" class="bg_blue">案件移送书</td>
    <td>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
     <c:if test="${empty CaseChangeInsp}">
    <a href="#" onclick="addCaseChangeInsp()">添加</a>
    </c:if>
    </c:if>
    <c:if test="${empty CaseChangeInsp}"><font color="#FF0000">未填写案件移送书</font></c:if>
    <c:if test="${!empty CaseChangeInsp}">
    <c:if test="${cInfo.caseInfoCasestate != 'e'}">
    <a href="#" onclick="updateCaseChangeInsp('${CaseChangeInsp.id}')">修改</a>
    </c:if>
        <a href="#" onclick="detailCaseChangeInsp('${CaseChangeInsp.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/CaseChangeInsp.do?method=docCaseChangeInsp&cid=${CaseChangeInsp.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>

  <tr>
    <td align="right" class="bg_blue">处理审批表</td>
    <td>
    <c:if test="${empty disposalConsiderations}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty disposalConsiderations}">
    <c:if test="${cInfo.caseInfoCasestate == '3'}">
    <a href="#" onclick="updateDisposalConsiderations('${disposalConsiderations.disposalConsId}')">修改</a>
    </c:if> 
    <a href="#" onclick="detailDisposalConsiderations('${disposalConsiderations.disposalConsId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalConsiderations.do?method=docDisposalConsiderations&did=${disposalConsiderations.disposalConsId}" target="_blank">下载</a></c:if></td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">限期整改指令书</td>
    <td>
    <c:if test="${empty disposalRectification}"><font color="#FF0000">未填写</font> 
    <c:if test="${cInfo.caseInfoCasestate == '4'}"><a href="#" onclick="addDisposalRectification()">添加</a></c:if>
    </c:if>
    <c:if test="${!empty disposalRectification}">
    <c:if test="${cInfo.caseInfoCasestate == '4'}">
    <a href="#" onclick="updateDisposalRectification('${disposalRectification.disposalRectId}')">修改</a>
    </c:if>
    <a href="#" onclick="detailDisposalRectification('${disposalRectification.disposalRectId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalRectification.do?method=docDisposalRectification&did=${disposalRectification.disposalRectId}" target="_blank">下载</a>
    </c:if>
    </td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">行政处罚事先告知书、听证告知书</td>
    <td>
    <c:if test="${empty disposalNotice}"><font color="#FF0000">未填写</font> 
    <c:if test="${cInfo.caseInfoCasestate == '4'}"><a href="#" onclick="addDisposalNotice()">添加</a></c:if>
    </c:if>
    <c:if test="${!empty disposalNotice}">
    <c:if test="${cInfo.caseInfoCasestate == '4'}">
    <a href="#" onclick="updateDisposalNotice('${disposalNotice.disposalNoticeId}')">修改</a>
    </c:if>
    <a href="#" onclick="detailDisposalNotice('${disposalNotice.disposalNoticeId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalNotice.do?method=docDisposalNotice&did=${disposalNotice.disposalNoticeId}" target="_blank">下载事先告知书</a>
        <a href="<%=request.getContextPath()%>/DisposalNotice.do?method=docDisposalNoticeTz&did=${disposalNotice.disposalNoticeId}" target="_blank">下载听证告知书</a>
    </c:if>
    </td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">行政（处理）处罚决定书</td>
    <td>
    <c:if test="${empty disposalDecision}"><font color="#FF0000">未填写</font> 
    <c:if test="${cInfo.caseInfoCasestate == '4' }"><a href="#" onclick="addDisposalDecision()">添加</a></c:if>
    </c:if>
    <c:if test="${!empty disposalDecision}">
    <c:if test="${cInfo.caseInfoCasestate == '4'}">
    <a href="#" onclick="updateDisposalDecision('${disposalDecision.dispDeciId}')">修改</a>
    </c:if>
    <a href="#" onclick="detailDisposalDecision('${disposalDecision.dispDeciId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalDecision.do?method=docDisposalDecision&did=${disposalDecision.dispDeciId}" target="_blank">下载处理决定书</a>
    <a href="<%=request.getContextPath()%>/DisposalDecision.do?method=docDisposalDecisionCf&did=${disposalDecision.dispDeciId}" target="_blank">下载处罚决定书</a>
    </c:if>
    </td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">处罚跟踪</td>
    <td>
    <c:if test="${empty disposalTrack}"><font color="#FF0000">未填写</font> 
    <c:if test="${cInfo.caseInfoCasestate == '4'}"><a href="#" onclick="addDisposalTrack()">添加</a></c:if>
    </c:if>
    <c:if test="${!empty disposalTrack}">
    <c:if test="${cInfo.caseInfoCasestate == '4'}">
    <a href="#" onclick="updateDisposalTrack('${disposalTrack.disposalTrackId}')">修改</a>
    </c:if>
    <a href="#" onclick="detailDisposalTrack('${disposalTrack.disposalTrackId}')">查看</a>
    </c:if>
    </td>
  </tr>
    <tr>
    <td align="right" class="bg_blue">送达回执</td>
    <td>
    <a href="#" onclick="displaySpan('receiptInfo')">查看</a>
    <c:if test="${cInfo.caseInfoCasestate == '1' || cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '3' || cInfo.caseInfoCasestate == '4' || cInfo.caseInfoCasestate == '5' || cInfo.caseInfoCasestate == '9'}">
    <a href="#" onclick="addReceiptInfo()">添加</a>
    </c:if>
       <br/>
    <span id="receiptInfo" style="display:none">
    <c:if test="${empty receiptInfoList}"><font color="#FF0000">未填写送达回执</font></c:if>
    <c:forEach items="${receiptInfoList}" var="prod" varStatus="lineInfo">
    [${prod.receiptInfoYear}-${prod.receiptInfoMonth}-${prod.receiptInfoDay}]送达回执
    <c:if test="${cInfo.caseInfoCasestate == '1' || cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '3' || cInfo.caseInfoCasestate == '4' || cInfo.caseInfoCasestate == '5' || cInfo.caseInfoCasestate == '9'}">
    <a href="#" onclick="updateReceiptInfo('${prod.receiptInfoId}')">修改</a>
    <a href="#" onclick="javascript:if(confirm('确定要删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/ReceiptInfo.do?method=deleteReceiptInfo&rid=${prod.receiptInfoId}'}">删除</a>
    </c:if>
    <a href="#" onclick="detailReceiptInfo('${prod.receiptInfoId}')">查看</a>
    <a href="<%=request.getContextPath()%>/ReceiptInfo.do?method=docReceiptInfo&rid=${prod.receiptInfoId}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
    <tr>
    <td align="right" class="bg_blue">强制执行申请书</td>
    <td>
    <c:if test="${cInfo.caseInfoCasestate == '4'}">
     <c:if test="${empty EnforceDo}">
    <a href="#" onclick="addEnforceDo()">添加</a>
    </c:if>
    </c:if>
    <c:if test="${empty EnforceDo}"><font color="#FF0000">未填写强制执行申请书</font></c:if>
    <c:if test="${!empty EnforceDo}">
    <c:if test="${cInfo.caseInfoCasestate == '3' || cInfo.caseInfoCasestate == '4'}">
    <a href="#" onclick="updateEnforceDo('${EnforceDo.id}')">修改</a>
    </c:if>
     <a href="#" onclick="detailEnforceDo('${EnforceDo.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/EnforceDo.do?method=docEnforceDo&eid=${EnforceDo.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>
  
  <tr>
    <td align="right" class="bg_blue">结案审批表</td>
    <td>
    <c:if test="${empty applyEndcase}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty applyEndcase}">
    <c:if test="${cInfo.caseInfoCasestate == '5'}">
    <a href="#" onclick="updateApplyEndcase('${applyEndcase.applyEndcaseId}')">修改</a>
    </c:if> 
    <a href="#" onclick="detailApplyEndcase('${applyEndcase.applyEndcaseId}')">查看</a>
    <a href="<%=request.getContextPath()%>/ApplyEndcase.do?method=docApplyEndcase&aid=${applyEndcase.applyEndcaseId}" target="_blank">下载</a></c:if></td>
  </tr>
  </c:if>
  <tr>
    <td class="nohover" colspan="2" align="center">
     <c:if test="${(!empty CaseChangeInsp) && cInfo.caseInfoCasestate != 'e' }">&nbsp;<input class="buttonnormal" type="button" value="案件移送" onclick="changeInspetor()"/></c:if>
     <c:choose>
	 <c:when test="${cInfo.caseInfoCasestate == '0'}"><input class="buttonnormal" type="button" value="申请立案" onclick="addApplyCase()"/></c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9'  || cInfo.caseInfoCasestate == 'e'}"><input class="buttonnormal" type="button" value="处理报批" onclick="addDisposalConsiderations()"/>&nbsp;<input class="buttonnormal" type="button" value="快速结案" onclick="addApplyEndcase(${param.caseInfoId})"/></c:when>
	 <c:when test="${cInfo.caseInfoCasestate == '4'}"><input class="buttonnormal" type="button" value="申请结案" onclick="addApplyEndcase()"/></c:when>
	 </c:choose>
    <input class="buttonreturn" type="button" value="返回" onClick="window.location.href='<%=request.getContextPath()%>/CaseInfo.do?method=list'">
    </td>
  </tr>
</table>
</body>
</html>
